import axios from "axios";
axios.defaults.baseURL = "https://zs.dance2020.cc:16063";

export const checkTokenApi = ({ access_token, openid }) => {
  axios.get("https://api.weixin.qq.com/sns/auth", {
    params: {
      access_token,
      openid,
    },
  });
};

export const getToken = (data) => {
  return axios.post("/app-api/member/auth/social-login", data);
};
